package com.demo.las.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.time.LocalDateTime;

public class PersonalAffairDTO {
    private Long id;
    private Long userId;
    private String affairName;
    private String affairCode;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endDate;

    private Integer completionRating;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    public PersonalAffairDTO(Long id, Long userId, String affairName, String affairCode,
                             LocalDateTime startDate, LocalDateTime endDate,
                             Integer completionRating, LocalDateTime createTime, LocalDateTime updateTime) {
        this.id = id;
        this.userId = userId;
        this.affairName = affairName;
        this.affairCode = affairCode;
        this.startDate = startDate;
        this.endDate = endDate;
        this.completionRating = completionRating;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Long getId() { return id; }
    public Long getUserId() { return userId; }
    public String getAffairName() { return affairName; }
    public String getAffairCode() { return affairCode; }
    public LocalDateTime getStartDate() { return startDate; }
    public LocalDateTime getEndDate() { return endDate; }
    public Integer getCompletionRating() { return completionRating; }
    public LocalDateTime getCreateTime() { return createTime; }
    public LocalDateTime getUpdateTime() { return updateTime; }
}